package net.entelijan.cobean.util;

import java.io.Serializable;
import java.util.Comparator;

public class NumberComparator implements Comparator<Number>, Serializable {

	private static final long serialVersionUID = 1L;

	public NumberComparator() {
		super();
	}

	@Override
	public int compare(Number o1, Number o2) {
		return (int) (o1.doubleValue() - o2.doubleValue());
	}

}
